FROM golang:1.21.8-alpine3.19
WORKDIR /app
COPY ./go /app
RUN go env -w 'GOPROXY=https://goproxy.cn'
RUN go build -o /usr/local/bin/main
CMD ["/usr/local/bin/main"]
